package com.example.codemo.controller;

import com.example.codemo.entity.${entityName};
import com.example.codemo.service.${entityName}Service;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
* 文章信息表，存储已发布的文章(${entityName})表控制层
*
* @author makejava
* @since 2022-11-10 14:48:05
*/
@RestController
@RequestMapping("apArticle")
public class ${entityName}Controller {
/**
* 服务对象
*/
@Resource
private ${entityName}Service apArticleService;

/**
* 通过主键查询单条数据
*
* @param id 主键
* @return 单条数据
*/
@GetMapping("selectOne")
public ${entityName} selectOne(Long id) {
return this.apArticleService.queryById(id);
}


}
